package statePattern.normal;

/**
 * @Author : 叶荻风
 * @create : 2024/6/27 16:39
 */
public class StopState implements State{
    private final StateEnum stateEnum = StateEnum.STOP;
    @Override
    public void doAction(Context context) {
        System.out.println("Player in "+ stateEnum);
        context.setState(this);
    }
    @Override
    public StateEnum getStateEnum(){
        return stateEnum;
    }
}
